package com.erics.shortlink.admin.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_user")
@Accessors(chain = true)
public class UserDo implements Serializable {

    private static final long serialVersionUID = 1L;


    //ID

    private Long id;

    //用户名
    private String username;

    //密码
    private String password;

    //真实姓名
    private String realName;

    //手机号

    private String phone;

    //邮箱
    private String mail;

    //注销时间戳
    private Long deletionTime;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //删除标识 0：未删除 1：已删除
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;


}